// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=1003

//#define COMPILE
#ifdef COMPILE

#include <fstream>
using namespace std;

int n;
int data[100];
int ans[100];

void input() {
	ifstream in("input.txt");
	in >> n;
	for (int i = 0; i < n; i++) 
		in >> data[i];
	in.close();
}

void swap(int &a, int &b) {
	int c = a;
	a = b;
	b = c;
}

void solve() {
	for (int i = 0; i < n; i++) {
		ans[i] = i + 1;
		int idx = i;
		for (int j = data[i]; j > 0; j--) {
			swap(ans[idx] , ans[idx - 1]);
			idx--;
		}
	}
}

void output() {
	ofstream out("output.txt");
	for (int i = 0; i < n; i++) 
		out << ans[i] << " ";
	out.close();

	out.close();
}

int main() {
	input();
	solve();
	output();

	return 0;
}
#endif
